package com.qianda.qdminiapp.domain.model.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分润表
 * </p>
 *
 * @author cw
 * @since 2019-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdOrderShareProfit extends Model<QqdOrderShareProfit> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long companyId;
    /**
     * 出巾订单id
     */
    private Long orderTowelId;

    /**
     * 订单用户
     */
    private Long orderUserId;

    /**
     * 设备id
     */
    private Long deviceId;

    /**
     * 订单金额
     */
    private BigDecimal orderAmt;

    /**
     * 省级代理商id
     */
    private Long provinceAgentId;

    /**
     * 省级代理商姓名
     */
    private String provinceAgentName;

    /**
     * 订单分润(省级)
     */
    private BigDecimal shareProfitProvince;

    /**
     * 城市合伙人姓名
     */
    private String cityPartnerName;

    /**
     * 城市合伙人id
     */
    private Long cityPartnerId;

    /**
     * 订单分润(市级)
     */
    private BigDecimal shareProfitCity;

    /**
     * 服务商姓名
     */
    private String serviceName;

    /**
     * 服务商id
     */
    private Long serviceProviderId;

    /**
     * 订单分润(服务商)
     */
    private BigDecimal shareProfitService;

    /**
     * 门店负责人id
     */
    @TableField("share_profit_Store_Principal_id")
    private Long shareProfitStorePrincipalId;

    /**
     * 门店负责人姓名
     */
    @TableField("share_profit_Store_Principal")
    private String shareProfitStorePrincipal;

    /**
     * 门店负责人分润
     */
    @TableField("share_profit_Store_amt")
    private BigDecimal shareProfitStoreAmt;

    private LocalDateTime orderPayTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
